import service from "./index.js";
const msgApi = {
    getMsg(){
        return service.get('/message/getReserveMsg',{timeout:35000}).then(resp=>resp.data)
    },
    changeStatus(msgId){
        return service.get('/message/changeStatus',{params:{msgId:msgId}}).then(resp=>resp.data)
    },
    delete(msgId){
        return service.delete('/message/'+msgId).then(resp=>resp.data)
    },
}
export default msgApi